import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        token: ''
    },
    getters: {},
    mutations: {
        SET_TOKEN: (state, token) => {
            console.log('token=>', token)
            state.token = token
        }
    },
    actions: {
        setSize({commit}, token) {
            commit('SET_TOKEN', token)
        },
    },
    modules: {}
})
